package com.shopx.cm.service;

import com.shopx.cm.bean.CmMeasure;
import com.shopx.cm.model.CmMeasureModel;
import com.shopx.cmm.DTO.PageDTO;
import java.util.List;
//import com.shopx.base.exception.ShopxException;

/**
 * TODO
 * @author lituo
 * @className: CmMeasure
 * @date 2025-01-07
 */
public interface ICmMeasureService {

    /**
     * 查询明细记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return CmMeasureModel
     */
    CmMeasureModel selectByPrimaryKey(CmMeasure cmMeasure);

    /**
     * 新增记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
    int insertSelective(CmMeasure cmMeasure);

    /**
     * 修改记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
    int updateByPrimaryKeySelective(CmMeasure cmMeasure);

    /**
     * 删除记录
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasure
     * @return int
     */
    int deleteByPrimaryKey(CmMeasure cmMeasure);
	

	/**
     * 查询总记录数
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasureModel
     * @return int
     */
    int selectCount(CmMeasureModel cmMeasureModel);

    /**
     * 查询列表
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasureModel
     * @return List<CmMeasureModel>
     */
    List<CmMeasureModel> selectList(CmMeasureModel cmMeasureModel);

    /**
     * 分页查询
     * @author lituo
     * @date 2025-01-07
     * @param cmMeasureModel
     * @return PageModel<CmMeasureModel>
     */
    PageDTO<CmMeasureModel> getListPage(CmMeasureModel cmMeasureModel);

    /**
     * 同步ERP数据
     */
    void syncErpData();
	
}

